package com.xcjw.com.View;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * @packname com.xcjw.com.View
 * @filename MyListview
 * @date on 2018/11/21 11:29
 *****/
public class MyListview extends ListView {
      public MyListview(Context context) {
            super(context);
      }

      public MyListview(Context context, AttributeSet attrs) {
            super(context, attrs);
      }

      public MyListview(Context context, AttributeSet attrs, int defStyleAttr) {
            super(context, attrs, defStyleAttr);
      }


      @Override
      protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
            int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,MeasureSpec.AT_MOST);
            super.onMeasure(widthMeasureSpec, expandSpec);
      }

}